﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LevenBlog.Core.Entities;

namespace LevenBlog.Core.Data
{
    public interface ITag
    {
        int Count(IDbProvider provider);

        void Insert(IDbProvider provider, lb_tag tag);

        void Update(IDbProvider provider, lb_tag tag);

        void Delete(IDbProvider provider, int id);

        void Delete(IDbProvider provider, string tagName);

        lb_tag Get(IDbProvider provider, int id);

        lb_tag Get(IDbProvider provider, string tagName);

        IList<lb_tag> Get(IDbProvider provider, int pageSize, int currentPage);

        IList<lb_tag> GetOrderByHot(IDbProvider provider, int pageSize, int currentPage);
    }
}
